var opt1 = new g_option();
opt1.columns = function () {
  return [
    {name: 'name',enableCellEdit: true,enableSorting: true},
    {name: 'car',enableCellEdit: true,enableSorting: false},
    {name: 'car2',enableCellEdit: true},
    {name: '编辑',enableCellEdit: false, cellTemplate : '<a class="delet-ng" href="" ng-click="grid.appScope.delet(row.entity);">删除</a>'}
  ];
};
opt1.init("DRG_EXA_MONTH","dgl","#dg-vie","showItemId");
opt1.page(10);
opt1.clicks = function ($scope) {//私有方法
    $scope.gridOptions.enableColumnMenu = true;
    $("#addkaohe").click(function () {
        $('#identifier').modal('show');
    });
};
//----------------------------------------------第二次引用
var opt2 = new g_option();
opt2.columns = function () {
  return [
    {name:'name'},
    {name:'car'},
    {name:'car7'},
    {name: '编辑',enableCellEdit: false, cellTemplate : '<a class="delet-ng" href="" ng-click="grid.appScope.delet(row.entity);">删除</a>'}
  ]
};
opt2.init("DRG_EXA_MONTH","dg2","#dg-vie3","showItemId2");
//opt2.page(5);
opt2.clicks = function () {//私有方法
    $("#addkaohe2").click(function () {
        $('#qqw').modal('show');
    });
};

//----------------------------------------------第三次引用
var opt3 = new g_option();
opt3.columns = function () {
    return [
        {name: 'name'},
        {name: 'car'}
    ];
};
opt3.init("DRG_EXA_MONTH","dg3","#dg-vie4","showItemId3");
//opt3.page(5);